package com.baby.mall.product.service;

import com.baby.mall.product.entity.BrandEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baby.common.utils.PageUtils;
import com.baby.mall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author qinglongzhai
 * @email qinglongzhai@gmail.com
 * @date 2021-03-15 10:47:09
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     *保存详细信息
     * @Author QLZ
     * @Date 2021/3/17
     *  @param categoryBrandRelation:
     *  @return: void
     */

    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);


    void updateBrand(Long brandId, String name);

    /**
     *级联更新分类
     * @Author QLZ
     * @Date 2021/3/17
     *  @param catId:
     @param name:
     *  @return: void
     */

    void updateCategory(Long catId, String name);

    /**
     *根据分类获取品牌
     * @Author QLZ
     * @Date 2021/3/17
     *  @param catId:分类Id
     *  @return: java.util.List<com.baby.mall.product.entity.BrandEntity>
     */

    List<BrandEntity> getBrandsByCatId(Long catId);
}

